
 <?php   
//    echo $this->Session->flash('Auth');// hien thi thong bao loi xac thuc auth,cai nay dat o layout cung dc..
//    echo $this->Form->create('User',array('action'=>'login'));
//    echo $this->Form->input('username');
//    echo $this->Form->input('password');
//    echo $this->Form->end("Login"); ?>
<?php 
        echo Form::open();
        echo Form::label('Username', 'username');
        echo Form::input('username', Input::post('username', isset($post) ? $post->username : ''));
        echo Form::label('Password', 'password');
        echo Form::input('password', Input::post('password', isset($post) ? $post->password: '')); 
        echo Form::submit('Submit','submit', array('style' => 'margin-top: 20px;'));
        echo Form::close(); 
?>

<div style="margin-top: 20px;float: left;">
 <?php echo Html::anchor('users/add', 'Register',array('style' => 'margin-top:100px;'));   ?>
</div>
<div style="margin-top: 20px;">
 <?php echo Html::anchor('users/resetpassword', 'Forgot your password',array('style'=>'margin:40px;'));   ?>    
</div>
